package com.yuyou.fn.platform.service;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Created by wens on 16-11-15.
 */
public interface ICaptchaService {

    void outputImage(int w, int h, OutputStream os) throws IOException;

    void verifyCode(String code);

    Long opsStat(String uid, String ops);

    void cleanOptStat(String uid , String ops);

    boolean needVerifyCode(String uid, String ops, int threshold);


}
